package com.dlc.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dlc.shop.bean.app.dto.DeliveryDto;
import com.dlc.shop.bean.model.Delivery;
import com.dlc.shop.bean.vo.DeliveryOrderVO;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 *
 * @author lgh on 2018/11/26.
 */
public interface DeliveryService extends IService<Delivery> {

    /**
     * 根据物流ID与物流单号查找物流信息
     * @param delivery
     * @param expNo 物流单号
     * @param receiverMobile 收件人手机号
     * @return 物流信息
     * @throws UnsupportedEncodingException
     */
    DeliveryDto query(Delivery delivery, String expNo, String receiverMobile) throws UnsupportedEncodingException;

    /**
     * 根据订单编号获取发货数量
     * @param orderNumbers
     * @return
     */
    List<DeliveryOrderVO> listDeliveryCountByOrderNumber(List<String> orderNumbers);

    /**
     * 获取物流公司信息
     * @param deliveryId 物流公司id
     * @return 物流公司
     */
    Delivery getInfoById(Long deliveryId);
}
